<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddMobile extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('mobile', 'string', ['limit' => 12, 'default' => '', 'comment' => '手机号'])
            ->update();

    }

    public function down()
    {
        $this->table('coupon_order')
            ->removeColumn('mobile');
    }
}
